<?php
/**
 * Created by JetBrains PhpStorm.
 * User: T420
 * Date: 9/27/12
 * Time: 10:16 PM
 * To change this template use File | Settings | File Templates.
 */
class Models_Menu extends Libs_Model
{
    public function __construct()
    {
        parent::__construct();
    }
    public function getmenusystem()

    {
        $this->db->connect();
        $listmenu=$this->db->executeQuery("select * from lb_menusystem where status=1");
        $this->db->disconnect();
        return $listmenu;
    }
    public function getmenuproduct()
    {
        $this->db->connect();
        $list=$this->db->executeQuery("select * from lb_menuproduct where status=1");
        $this->db->disconnect();
        return $list;
    }
    public function getmanufactory()
    {
        $this->db->connect();
        $list=$this->db->executeQuery("select * from lb_manufactures where status=1");
        $this->db->disconnect();
        return $list;
    }
    public function getnews()
    {
        $this->db->connect();
        $list=$this->db->executeQuery("select * from lb_news where status=1 limit 8");
        $this->db->disconnect();
        return $list;
    }

}